Migrating from Microsoft FrontPage to Macromedia Dreamweaver MX 2004
Table of Contents
- Introduction
- Introducing the Dreamweaver Workspace
- Streamlining Your Workspace
- Setting Up a Web and Managing Files
- Working with Text
- Working with Styles and Style Sheets
- Working with Images
- Creating Links
- Creating Tables
- Using Layout Mode to Position Text and Images
- Using Predesigned Pages to Get a Head Start
- Making Quick Edits to Code
- Working in Code View
- Editing Code in Code View
- Customizing Your Coding Environment
- Taking the Next Steps
Editing Code in Code View
You can use Dreamweaver to edit your code more efficiently and with less errors. For example, you can use code hints to suggest code as you type in Code view.
To use code hints:
Start typing in Code view.
When you type certain characters, a list appears suggesting options to complete your entry.
Figure 42. Code hints
- Select an item in the list or press Enter to insert it in your code.
If you prefer to edit tags in a structured dialog box, you can use a tag editor.
To use a tag editor:
Right-click inside a tag in your code and select Edit Tag from the shortcut menu.
The tag editor for that tag appears.
Figure 43. The Tag editor dialog box
Make your edits in the dialog box and click OK.
Dreamweaver updates the tag in your code accordingly.
If you prefer to edit tags in a property sheet similar to the ones found in integrated development environments such as Microsoft Visual Studio, you can use the Tag inspector.
To use the Tag inspector:
- Open the Tag inspector (Window > Tag Inspector).
Click anywhere inside a tag in your code.
If the tag supports attributes, Dreamweaver displays them and their current values in the Tag inspector’s property sheet.
Figure 44. The tag inspector
Make the changes to the tag in the property sheet.
Click an attribute to type a value or, if the attribute takes predefined values, select one from a list.
You can also change any CSS style applied to the tag by clicking the Relevant CSS tab in the Tag inspector and selecting the CSS rule you want to modify.
- Click elsewhere in the panel or press Enter to update the tag in your code.